package com.yushu.authority.pojo.bo;

import java.io.Serializable;
import java.util.*;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yushu.common.configuration.spring.SpringMVCCustomJsonDateDeserializer;


/**
 * 
 * @author test
 * @CreateDate 2020-12-03 15:47:24
 */
@Data
@TableName("pm_user")
public class PmUser implements Serializable {
    private static final long serialVersionUID = 1L;
    //列开始
    @Getter
    @Setter
    @TableId(value = "id", type = IdType.UUID)
    private String id;//用户主键
    @Getter
    @Setter
    private String orgId;//组织结构外键
    @Getter
    @Setter
    private String userName;//用户名
    @Getter
    @Setter
    private String password;//密码
    @Getter
    @Setter
    private String userState;//状态
    @Getter
    @Setter
    private String userType;//用户类型
    @JsonDeserialize(using = SpringMVCCustomJsonDateDeserializer.class)
    private Date createTime;//创建日期
    @JsonDeserialize(using = SpringMVCCustomJsonDateDeserializer.class)
    private Date updateTime;//修改日期
    @JsonDeserialize(using = SpringMVCCustomJsonDateDeserializer.class)
    private Date birthday;//出生日期
    @Getter
    @Setter
    private String userSex;//性别
    @Getter
    @Setter
    private String userPortrait;//用户头像
    @Getter
    @Setter
    private String userEmail;//邮箱
    @Getter
    @Setter
    private String userWeixin;//微信
    @Getter
    @Setter
    private String userQq;//QQ
    @Getter
    @Setter
    private String userTel;//电话
    @Getter
    @Setter
    private String passwordSalt;//密码盐

    //列结束


    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getCreateTime() {
        return this.createTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getBirthday() {
        return this.birthday;
    }


}
